<?php
require_once 'constants.php';
require_once 'db.php';

$id = $_GET['img_id'];
$row = dbGetImageInfoById($id);
$img = imagecreatefromstring($row['image']);

print $row['id'] . '|' . $row['description'] . '|' . $row['source'] . '|' . $row['submit_date'] . '|' .
      $imgStatuses[$row['status']] . '|' . $row['publish_date'] . '|' . imagesx($img) . '|' . imagesy($img) . '|' 
      . strlen($row['image']) . '|' . $row['email'] . '|' . $row['comment'];

?>
